package com.yong.sbd.common.beans.page;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 分页入参
 *
 * @author Kang Yong
 * @date 2025/10/28
 * @since 1.0.0
 */
@Data
@AllArgsConstructor
public class PageParam {

    private Integer pageNum = 1;

    private Integer pageSize = 10;

    /**
     * 构建分页参数
     *
     * @param pageNum  页码
     * @param pageSize 页大小
     * @return {@link PageParam}
     * @author Kang Yong
     * @date 2025/10/28
     */
    public static PageParam build(Integer pageNum, Integer pageSize) {
        return new PageParam(pageNum, pageSize);
    }

}
